Automattic\WooCommerce\GoogleListingsAndAds\Product\ProductHelper B

Total Complexity 78
Dependencies 13
Dependents 19
Total lines 608
Lines of code 282
Logical lines of code 167
Comment lines 248
Methods 28
Properties 3

Methods 28

Method Rating Maintainability Complexity Lines of code
is_sync_ready()
A
52 8 24
mark_as_invalid()
S
51 7 27
mark_as_synced()
S
51 6 25
maybe_swap_for_parent_ids()
S
56 6 17
mark_as_unsynced()
S
55 4 20
remove_google_id()
S
58 4 16
get_validation_errors()
S
65 5 8
maybe_swap_for_parent()
S
59 3 15
update_channel_visibility()
S
60 3 14
get_mc_status()
S
62 3 12
mark_as_pending()
S
63 3 11
update_empty_visibility()
S
63 3 11
get_categories()
S
73 3 4
get_channel_visibility()
S
62 2 12
is_product_synced()
S
72 2 5
is_sync_failed_recently()
S
69 2 6
get_wc_product_title()
S
67 2 8
get_wc_product_id()
S
62 2 10
get_wc_product_by_wp_post()
S
80 1 3
increment_failed_delete_attempt()
S
74 1 4
is_delete_failed_threshold_reached()
S
75 1 4
increment_failed_update_attempt()
S
74 1 4
is_update_failed_threshold_reached()
S
75 1 4
get_sync_status()
S
80 1 3
get_wc_product()
S
80 1 3
maybe_swap_for_parent_id()
S
75 1 4
get_synced_google_product_ids()
S
80 1 3
__construct()
S
74 1 5